home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 169 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.5 KB

  1. From: horstman@jupiter.SJSU.EDU (Cay S. Horstmann)
  2. Message-ID: <4ej3t4$7nb@jupiter.SJSU.EDU>
  3. X-Original-Date: Mon, 29 Jan 1996 18:24:45 GMT
  4. Path: in2.uu.net!bounce-back
  5. Date: 30 Jan 96 04:47:31 GMT
  6. Approved: fjh@cs.mu.oz.au
  7. Newsgroups: comp.std.c++
  8. Subject: and, or, not
  9. Organization: San Jose State University - Math/CS Dept
  10. X-Newsreader: Forte Free Agent 1.0.82
  11. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  12.     iQBFAgUBMQ2jCuEDnX0m9pzZAQGaXQGAgOBjyu5FFPc1v0Atz3CwEOaNzMcVQbhY
  13.     ewSq49OpGI5fVXD/21wV9Yrn4zrgCblC
  14.     =u4Fx
  15.  
  16. I just got a press release from Borland that says their upcoming 5.0
  17. compiler will support keywords and, or, not, that are synonyms to &&,
  18. || and !. 
  19.  
  20. They say you can use those if your local keyboard makes it difficult
  21. to write the traditional tokens. Hell, my local eyes make it difficult
  22. to read them. Does that mean I can from now on just write
  23.     if (0 <= x and x <= 1) . . .
  24. and be in conformance with ANSI C++?
  25.  
  26. That is, are "and", "or", "not", now reserved words in ALL C++
  27. programs, or do you actually have to reside in a foreign country and
  28. first use some preprocessor (like that trigraph filter) to get them?
  29.  
  30. If the answer is "they are reserved words in the language", then I'll
  31. add
  32.     #define and &&
  33.     #define or ||
  34.     #define not !
  35. into my personal setup file today, until my compiler understands them
  36. natively. Hooray!
  37.  
  38. Cay
  39. horstman@cs.sjsu.edu
  40. ---
  41. [ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  42.   Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  43.   is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
  44.